<?php
class tbl_stage_log extends AppModel
{
    public $useTable = 'user_char_stage_clears';
    public $useDbConfig = 'fantasy_hero_kr';
    public $primaryKey = '_id';
    public $order = array('tbl_stage_log.stage_clear' => 'DESC');

    public function get_stage_log($_char_id)
    {
        $params = array(
            'conditions' => array(
                'char_id' => $_char_id
            ),
            'fields' => array(
                'stage_clear'
            )
        );

        $data = $this->find('first', $params);

        return $data;
    }
}